<template>
  <div id="SkuDetailRplotrule">
    <v-detail
      :detailData="inputData.detailData"
      :inputConfig="inputConfig"
      :rules="rules"
      ref="input"
    ></v-detail>
  </div>
</template>

<script>
import detail from "commons/Detail";
import baseMixin from "@/mixins/BaseMixin";

export default {
  name: "SkuDetailRplotrule",
  mixins: [baseMixin],
  props: {
    inputData: {
      type: Object
    }
  },
  data () {
    return {
      rules: {},
      whseidflag: true
    }
  },
  computed: {
    inputConfig () {
      return [
        [
          {
            type: "select",
            label: this.$t('outbound.rtxlotturnoverrule'),
            props: "rtxlotturnoverrule",
            options: this.getOptions('querycodeLkup/RTXLOTTURNOVERRULE'),
            disabled: this.whseidflag
          },
        ],
        [
          {
            type: "select",
            label: this.$t('outbound.rtxlotrule',{no:1}),
            props: "rtxlotrule1",
            options: this.getOptions("querycodeLkup/RTXLOTRULE"),
            disabled: true
          },
          {
            type: "select",
            label: this.$t('outbound.rtxlotrule',{no:2}),
            props: "rtxlotrule2",
            options: this.getOptions('querycodeLkup/RTXLOTRULE'),
            disabled: true
          },
          {
            type: "select",
            label: this.$t('outbound.rtxlotrule',{no:3}),
            props: "rtxlotrule3",
            options: this.getOptions('querycodeLkup/RTXLOTRULE'),
            disabled: true
          },
          {
            type: "select",
            label: this.$t('outbound.rtxlotrule',{no:4}),
            props: "rtxlotrule4",
            options: this.getOptions('querycodeLkup/RTXLOTRULE'),
            disabled: true
          },
          {
            type: "select",
            label: this.$t('outbound.rtxlotrule',{no:5}),
            props: "rtxlotrule5",
            options: this.getOptions('querycodeLkup/RTXLOTRULE'),
            disabled: true
          },
        ],
        [
          {
            type: "select",
            label: ":",
            props: "rtxlotrulesort1",
            options: this.getOptions("querycodeLkup/RTXLOTRULESORT"),
            disabled: true
          },
          {
            type: "select",
            label: ":",
            props: "rtxlotrulesort2",
            options: this.getOptions("querycodeLkup/RTXLOTRULESORT"),
            disabled: true
          },
          {
            type: "select",
            label: ":",
            props: "rtxlotrulesort3",
            options: this.getOptions("querycodeLkup/RTXLOTRULESORT"),
            disabled: true
          },
          {
            type: "select",
            label: ":",
            props: "rtxlotrulesort4",
            options: this.getOptions("querycodeLkup/RTXLOTRULESORT"),
            disabled: true
          },
          {
            type: "select",
            label: ":",
            props: "rtxlotrulesort5",
            options: this.getOptions("querycodeLkup/RTXLOTRULESORT"),
            disabled: true
          },
        ],
        [
          {
            type: "input",
            label: ":",
            props: "rtxlotrulesortdescr1",
            disabled: true
          },
          {
            type: "input",
            label: ":",
            props: "rtxlotrulesortdescr2",
            disabled: true
          },
          {
            type: "input",
            label: ":",
            props: "rtxlotrulesortdescr3",
            disabled: true
          },
          {
            type: "input",
            label: ":",
            props: "rtxlotrulesortdescr4",
            disabled: true
          },
          {
            type: "input",
            label: ":",
            props: "rtxlotrulesortdescr5",
            disabled: true
          },
        ]
      ]
    }
  },
  methods: {},
  mounted () {
    if (this.$store.state.wms.toUpperCase().includes('WMWHSE')) {
      //仓库级
      this.whseidflag = false;
    }
  },
  components: {
    "v-detail": detail
  }
}
</script>

<style scoped>
</style>
